package com.example.harmonyosproject.pojo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Message implements Serializable {
    private Integer id;
    private Integer userId;
    private Integer friendId;
    private Boolean self;
    private String text;
    private String image;
    private LocalDateTime createTime;
    public Message(Integer userId, Integer friendId, Boolean self, String text, String image) {
        this.userId = userId;
        this.friendId = friendId;
        this.self = self;
        this.text = text;
        this.image = image;
    }
}
